home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / mega src / Changes next >
Encoding:
Text File  |  1994-09-29  |  5.3 KB  |  119 lines  |  [TEXT/ttxt]

  1.  
  2. nShell(tm) Change List for Version 1.0.3
  3.  
  4. A free upgrade to v1.0.3 of nShell-Pro is available to owners of earlier versions.
  5.  
  6. If you have any questions about these changes, or have noticed any other problems, please send eMail to jjensen@kaiwan.com
  7.  
  8. ===== Changes in v1.0.3
  9.  
  10. C.R. #199    Flow of control problem on block boundaries
  11.  
  12. Flow of control commands sometimes failed in scripts.  The problem was tracked to an error in file handling.
  13.  
  14. C.R. #196    ‘cd’ to dir of click (TEXT) scripts
  15.  
  16. When an nShell script is double-clicked, or a text file is dropped on the nShell application, set the working directory to the directory containing the script file.
  17.  
  18. This provides a method of quick-starting the nShell from any directory.  Just leave a file with a Creator of 'NSHA' and a Type of 'TEXT', and perhaps a single line like "echo ready", in your directory.  Double-clicking that icon fires up the nShell, and sets the working directory to your current location.
  19.  
  20. C.R. #192    Make text files work as click-able, drop-able scripts
  21.  
  22. Allow text files to be dropped on the nShell application, or when they have a Creator of 'NSHA' allow them to be double-clicked.
  23.  
  24. NOTE:  The nShell will attempt to run any text file dropped on it, and will not invoke an editor.
  25.  
  26. C.R. #191    Improve Icons
  27.  
  28. The icons for Creator 'NSHA', Type 'TEXT' have been changed to script style icons.  If you have used a previous version of the nShell, you may wish to rebuild your desktop to see the new icons.
  29.  
  30. C.R. #188    Pipes within scripts sometimes fail
  31.  
  32. Redirection data was mismanaged within scripts.
  33.  
  34. C.R. #183    Empty “ls” problem
  35.  
  36. The 'ls' command and wildcard substitution (echo *) failed at some sites.  The problem was tracked to a 'short' dirID within a directory scan routine.
  37.  
  38. C.R. #181    Write a drag and drop engine
  39.  
  40. This template may be used to convert nShell scripts into drag and drop applications.  The files or directories dropped on the script are available as standard variables $0..$n.  See the new "drag and drop" section of the User's Guide.  
  41.  
  42. C.R. #177   Write a “shift” command
  43.  
  44. A new "shift" command helps manipulate variables within shell scripts.  See "man shift" for more information.
  45.  
  46. C.R. #176   Write a “read” command
  47.  
  48. A new "read" command allows variables to be read from standard input.  See "man read" for more information.
  49.  
  50. C.R. #172    Make “which” work with flow of control keywords
  51.  
  52. ===== Changes in v1.0.2
  53.  
  54. C.R. #174   The “find” dialog changes “ignore case” on “cancel”
  55.  
  56. The "find" dialog accepted "ignore case" control changes, even when the user selected "cancel".
  57.  
  58. C.R. #173   Print an error message when “which” parameter is too long.
  59.  
  60. The "which" and "pathchk" commands did not do error checking on pathname length.  The buffers would be overrun on pathnames longer than 255 characters.
  61.  
  62. C.R. #171   Speed up input redirection
  63.  
  64. A new buffer speeds redirection.
  65.  
  66. C.R. #170   Add man pages for flow
  67.  
  68. "man pages" for Flow Of Control keywords have been added.  To access these pages, you must quote the keyword, as in man "if".
  69.  
  70. C.R. #169   Scripts do not return correct status
  71.  
  72. The Return Code for a script should be the Return Code of the last command executed within the script.  In some cases the Return Code was lost.
  73.  
  74. C.R. #167   “yesno” does not handle ^D
  75.  
  76. Two problems. "NSH_getchar" did not return -1 when a ^D was typed on the keyboard, but returned it directly.  Secondly, the "yesno" command did not handle -1 as a return value.
  77.  
  78. C.R. #166   “wc <foo” outside home directory fails
  79.  
  80. A bad one!  The pathname was not correctly managed, so input redirection failed outside the home directory.
  81.  
  82. C.R. #165   Fix “NSH_gets” for Return characters
  83.  
  84. The "gets" callback has been corrected and improved.  An error which caused "gets" to read past '\r' when reading from a file has been fixed.  See the "nShell(tm) Programmer's Guide v1.0.2" for details.
  85.  
  86. C.R. #164   “echo” directly from command buffer
  87.  
  88. The "echo" command has been improved.  It may now echo up to a full line (2048 chars).
  89.  
  90. C.R. #161    Correct Return Codes in Programmer’s Guide
  91.  
  92. The Return Codes for a number of functions (NSH_which, NSH_set) were incorrectly documented in earlier versions of the Programmer's Guide.
  93.  
  94. C.R. #159   “man >dev:null”
  95.  
  96. There was an error in pipes to "dev:null".  The simple output redirectors ">" and ">>" always acted like error redirectors ">&" and ">>&".
  97.  
  98. C.R. #103   Write an “exit” command for scripts
  99.  
  100. A new "exit" command allows immediate exit from within shell scripts.  A Return Code may be assigned.  See "man exit" for more information.
  101.  
  102. C.R. #102   Write an “export” command for scripts
  103.  
  104. A new "export" command allows variables to exported from within shell scripts.  See "man export" for more information.
  105.  
  106. C.R. #74    Implement a CodeWarrior external command interface
  107.  
  108. A number of examples were written to illustrate now nShell commands may be written using Metrowerks' CodeWarrior.  This package is available as "nShell(tm) CodeWarrior Examples".  Also see "TN 1 - CodeWarrior".
  109.  
  110. C.R. #72    Implement a Pascal external command interface
  111.  
  112. A new interface library has been written to allow nShell commands to be developed using Think Pascal.  This package is available as "nShell(tm) Think Pascal Examples".  Also see "TN 2 - Think Pascal".
  113.  
  114. ===== Changes in v1.0.1
  115.  
  116. C.R. #175 Preserve paths on “save” and “open” of transcript
  117.  
  118. Version 1.0.0 did not properly save and restore system variables when shell transcripts were saved and restored.
  119.